package com.wdf.rule.action;

import lombok.Setter;

/**
 * @author wangdingfu
 * @date 2023-11-18 22:21:45
 */
public class VariableActionNode implements ActionNodeDefinition {

    /**
     * 变量id
     */
    private String variableId;

    /**
     * 0：变量值 1:获取变量值 2:设置变量值
     */
    private int type;

    @Setter
    private ActionNodeDefinition node;

    @Override
    public String toCode() {
        //根据变量id获取
        //a.get()
        //a.set({{}})
        //a
        return null;
    }


    @Override
    public Integer nodeType() {
        return null;
    }


    @Override
    public String toString() {
        return "请选择变量";
    }
}
